package com.example.a2207_zh.adapter

import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.a2207_zh.R
import com.example.a2207_zh.entity.VideoEntity

class VideoMimeAdapter(list: MutableList<VideoEntity>):BaseQuickAdapter<VideoEntity,BaseViewHolder>(
    R.layout.item_video_mine,list) {
    override fun convert(holder: BaseViewHolder, item: VideoEntity) {
        holder.setText(R.id.item_title,item.caption)
        holder.setText(R.id.item_authname,item.authname)
        Glide.with(context).load(item.videomainimg).into(holder.getView(R.id.item_iv))
    }
}